var Thing = new Class({
	initialize: function(top, left) {
		this.top = top;
		this.left = left;
	},
	
	include: function(element, scale) {
		element.setStyles({
			position: 'absolute',
			top: this.top,
			left: this.left,
			'z-index': this.top
		});
		document.id('playground').grab(element);
		if(scale) {
			element.setStyles({
				'-webkit-transform': 'scale(' + scale + ')',
				'-moz-transform': 'scale(' + scale + ')',
				'-ms-transform': 'scale(' + scale + ')',
				'-o-transform': 'scale(' + scale + ')',
				transform: 'scale(' + scale + ')'
			});
			var size = element.getSize();
			var height = size.y;
			var width = size.x;
			this.offset = {
				top: height * (1 - scale) / 2,
				left: width * (1 - scale) / 2
			};
		} else {
			this.offset = {
				top: 0,
				left: 0
			};
		}
		element.store('thing', this);
		this.drag = new Drag(element, {
			onDrag: (function() {
				this.top = element.getStyle('top').toInt() + this.offset.top;
				this.left = element.getStyle('left').toInt() + this.offset.left;
				element.setStyle('z-index', this.top + 1000);
			}).bind(this)
		});
		this.element = element;
		this.included();
	},
	
	included: function() {}
});